package pe.gob.sedapal.scmultimedia.rcp.perspective;

import org.eclipse.ui.IPageLayout;
import org.eclipse.ui.IPerspectiveFactory;

import pe.gob.sedapal.scmultimedia.rcp.view.NavegacionView;
import pe.gob.sedapal.scmultimedia.rcp.view.PrincipalView;
import pe.gob.sedapal.scmultimedia.rcp.view.centrosservicios.ConsultaCentroServiciosView;
import pe.gob.sedapal.scmultimedia.rcp.view.estadocuenta.BuscarDireccionView;
import pe.gob.sedapal.scmultimedia.rcp.view.estadocuenta.BuscarSuministroView;
import pe.gob.sedapal.scmultimedia.rcp.view.estadocuenta.ConsultaEstadoCuentaView;
import pe.gob.sedapal.scmultimedia.rcp.view.estadocuenta.ResultadoView;
import pe.gob.sedapal.scmultimedia.rcp.view.estadocuenta.SuministrosPorNumeroView;
import pe.gob.sedapal.scmultimedia.rcp.view.servicios.ConsultaServiciosView;
import pe.gob.sedapal.scmultimedia.rcp.view.servicios.PdfView;

public class Perspective implements IPerspectiveFactory {

	public void createInitialLayout(IPageLayout layout) {
		String editorArea = layout.getEditorArea();
		layout.setEditorAreaVisible(false);
		
		layout.addStandaloneView(PrincipalView.ID, false, IPageLayout.TOP, 0.90f, editorArea);
		layout.addStandaloneViewPlaceholder(ConsultaEstadoCuentaView.ID,  IPageLayout.TOP, 0.90f, editorArea, false);
		layout.addStandaloneViewPlaceholder(BuscarSuministroView.ID,  IPageLayout.TOP, 0.90f, editorArea, false);
		layout.addStandaloneViewPlaceholder(BuscarDireccionView.ID,  IPageLayout.TOP, 0.90f, editorArea, false);

		layout.addStandaloneViewPlaceholder(SuministrosPorNumeroView.ID,  IPageLayout.TOP, 0.90f, editorArea, false);
		layout.addStandaloneViewPlaceholder(ResultadoView.ID,  IPageLayout.TOP, 0.90f, editorArea, false);
		layout.addStandaloneViewPlaceholder(PdfView.ID,  IPageLayout.TOP, 0.90f, editorArea, false);
		layout.addStandaloneViewPlaceholder(ConsultaCentroServiciosView.ID,  IPageLayout.TOP, 0.90f, editorArea, false);
		layout.addStandaloneViewPlaceholder(ConsultaServiciosView.ID,  IPageLayout.TOP, 0.90f, editorArea, false);

		layout.getViewLayout(NavegacionView.ID).setMoveable(false);
		layout.addStandaloneViewPlaceholder(NavegacionView.ID,  IPageLayout.TOP, 0.1f, editorArea, false);

		
	}
}
